package com.mep.auth.feign;

import com.mep.auth.model.SysConfig;
import com.mep.common.http.HttpResult;
import com.mep.common.page.PageRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "story-auth/config", path = "/")
public interface IFeignSysConfigApi {
//    @ApiOperation(value="01.保存config",notes="问题点:保存config")
//    @ApiOperationSupport(order = 1, author = "lyl")
    @PostMapping(value="/save")
    HttpResult save(@RequestBody SysConfig record);

//    @ApiOperation(value="02.删除config",notes="问题点:删除config")
//    @ApiOperationSupport(order = 2, author = "lyl")
    @PostMapping(value="/delete")
    HttpResult delete(@RequestBody List<SysConfig> records);

//    @ApiOperation(value="03.查询config分页数据",notes="问题点:查询config分页数据")
//    @ApiOperationSupport(order = 3, author = "lyl")
    @PostMapping(value="/findPage")
    HttpResult findPage(@RequestBody PageRequest pageRequest);

//    @ApiOperation(value="04.根据label查询config信息",notes="问题点:根据label查询config信息")
//    @ApiOperationSupport(order = 4, author = "lyl")
    @PostMapping(value="/findByLable")
    HttpResult findByLable(@RequestParam String lable);
}
